﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmpleadoListGrid.ascx.cs" 

Inherits="UILGestion.Seguridad.EmpleadoListGrid" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />

<asp:Panel runat="server" ID="PanelEmpleado" Font-Size="X-Small" Font-Names="Arial" >
<asp:DataPager ID="pager" PagedControlID="EmpleadoListView" runat="server" >
    <Fields>
      <cc1:PagerField NextPageImageUrl="~/Images/arrow_right2.gif" PreviousPageImageUrl="~/images/arrow_left.gif" />
    </Fields>
</asp:DataPager>
<asp:ListView ID="EmpleadoListView" runat="server" OnDataBound="ListView1_DataBound" 
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server"  class="ms-crm-List-Header" >
            
            <tr id="Tr1" runat="server" >
             
                <th id="Th7" runat="server">
                    <asp:LinkButton ID="LinkButton5" CommandName="Sort" CommandArgument="descripcion" ForeColor="Blue" runat="server">DESCRIPCION</asp:LinkButton>
                    </th>
                
                <th id="Th2" runat="server">
                    <asp:LinkButton ID="LinkButton1" CommandName="Sort" CommandArgument="dni" ForeColor="Blue" runat="server">DNI</asp:LinkButton>
                </th>
                <th id="Th3" runat="server">
                    <asp:LinkButton ID="lb3" CommandName="Sort" CommandArgument="email" ForeColor="Blue" runat="server">EMAIL</asp:LinkButton>
                </th>
                <th id="Th4" runat="server">
                    <asp:LinkButton ID="LinkButton2"  CommandName="Sort" CommandArgument="telefono" ForeColor="Blue"  runat="server">TELEFONO</asp:LinkButton>
                </th>
                <th id="Th1" runat="server">
                    <asp:LinkButton ID="LinkButton4"  CommandName="Sort" CommandArgument="bitActivo" ForeColor="Blue" runat="server">ACTIVO</asp:LinkButton>
                </th>
                 <th id="Th6" runat="server">
                    <asp:LinkButton ID="LinkButton6"  CommandName="Sort" CommandArgument="tieneAcceso" ForeColor="Blue" runat="server">ACCESO<br /> SISTEMA.</asp:LinkButton>
                </th>
                <th id="Th5" runat="server">
                    <asp:LinkButton ID="LinkButton3"  CommandName="Sort" CommandArgument="tieneAcceso" ForeColor="Blue" runat="server">TIENE ACCESO</asp:LinkButton>
                </th>
                <th id="Th10" runat="server">
                    <asp:LinkButton ID="LinkButton8"  CommandName="Sort" CommandArgument="usuario" ForeColor="Blue" runat="server">USUARIO</asp:LinkButton>
                </th>
                
                     

            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#FFF":"#EEE" %>'>
            <td>
               
             

                <asp:Hyperlink runat= "server" ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"descripcion").ToString()%>'  
                Target="_self"  ID="Comparativo"
                NavigateUrl='<%# "~/Seguridad/EmpleadoReadForm.aspx?id=" + DataBinder.Eval (Container.DataItem,"idinternal").ToString()  %>' 
               >   <asp:Image ID="PersonIcon" ImageUrl="~/images/individual.gif" Width="10px" Height="12px"
                    runat="server" /> </asp:Hyperlink>
                
            </td>
            
           
           
                 
          
            <td align="right" width="90px">
            <%# Eval("dni")%><br />
            </td>
             <td align="right" width="90px">
            <%# Eval("email")%><br /> 
            
             </td>
            <td width="70px" align="right">
            <%# Eval("telefono")%><br />
            </td>

             <td>
                <input id="Checkbox2" type="checkbox" runat="server" 
                checked= '<%# Eval("bitActivo")%>' disabled="disabled">
               <br />
            </td>
              <td>
                <input id="Checkbox1" type="checkbox" runat="server" 
                checked= '<%# Eval("tieneAcceso")%>' disabled="disabled">
               <br />
            </td>
            <td>
                <input id="Checkbox3" type="checkbox" runat="server" 
                checked= '<%# Eval("tieneAcceso")%>' disabled="disabled">
               <br />
            </td>
           
            <td width="50px" align="right">
                <%# Eval("usuario")%>
            </td>

             <td >
                   <asp:ImageButton runat= "server" 
               
                 Target="_self"  ID="Hyperlink1"
                PostBackUrl='<%# "~/Seguridad/EmpleadoEditForm.aspx?type=E&id=" +
                 DataBinder.Eval (Container.DataItem,"idInternal").ToString() %>' 
                 CssClass="GridIcon ico-edit" BorderStyle="None" ImageUrl="~/Images/listing/ico-edit.png"
               />  
                                  
            </td>

           </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                     <h2 style="font-size: x-small; color: #960818">
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>



</asp:Panel>

    
     